10b70f3a45c5fd7f6c8d8ef85a1cdfbf14eec8b6,portal-impl/src/com/liferay/portal/upgrade/v5_2_0/UpgradeTags.java,UpgradeTags,copyEntry,#number#number#,72
Before Change
Timestamp modifiedDate = rs.getTimestamp("modifiedDate");
String name = rs.getString("name");
long newEntryId = CounterLocalServiceUtil.increment();
ps = con.prepareStatement(
"insert into TagsEntry (entryId, groupId, companyId, " +
After Change
Long newEntryId = _entryIdsMap.get(key);
if (newEntryId != null) {
return newEntryId.longValue();
}
Connection con = null;
PreparedStatement ps = null;
ResultSet rs = null;
try {
con = DataAccess.getConnection();
ps = con.prepareStatement(
"select * from TagsEntry where entryId = ?");
ps.setLong(1, entryId);
rs = ps.executeQuery();
while (rs.next()) {
long companyId = rs.getLong("companyId");
long userId = rs.getLong("userId");
String userName = rs.getString("userName");
Timestamp createDate = rs.getTimestamp("createDate");
Timestamp modifiedDate = rs.getTimestamp("modifiedDate");
String name = rs.getString("name");
newEntryId = CounterLocalServiceUtil.increment();
ps = con.prepareStatement(
"insert into TagsEntry (entryId, groupId, companyId, " +